<!DOCTYPE html>
<html>
<head>
	<title>添加产品</title>
</head>
<body class="childrenBody">
<form class="layui-form" style="width:80%;">
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">标题</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input title" name="title" lay-verify="required" placeholder="请输入标题">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">副标题</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input subtitle" name="subtitle" lay-verify="required"  placeholder="请输入副标题">
		</div>
	</div>
	
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">价格</label>
		<div class="layui-input-block">
			<input type="text" class="layui-input price"  name="price" lay-verify="required"  placeholder="请确认价格">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">序号</label>
		<div class="layui-input-block">
			<input type="number" class="layui-input order" name="order" lay-verify="required" value="0"  min="0">
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">类型</label>
		 <div class="layui-input-block">
	      <input type="radio" name="type" value="1" title="实物" checked="">
	      <input type="radio" name="type" value="0" title="虚拟">
    	</div>
		
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">是否榜单产品</label>
		 <div class="layui-input-block">
	      <input type="radio" name="isBannerProduct" value="0" title="否" checked="">
	      <input type="radio" name="isBannerProduct" value="1" title="是">
    	</div>
		
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">上下架</label>
		 <div class="layui-input-block">
	      <input type="radio" name="isGrounding" value="1" title="上架" checked="">
	      <input type="radio" name="isGrounding" value="0" title="下架">
    	</div>
		
	</div>
	
	
	<div class="layui-form-item layui-row layui-col-xs12">
		<label class="layui-form-label">产品图片</label>
		<div class="layui-input-block" id="test1">
			<img src="" width="350" height="265" class="proUrl layui-upload-drag" style="cursor: pointer;"/>
		</div>
	</div>
	<div class="layui-form-item layui-row layui-col-xs12">
			<label class="layui-form-label">商品详情</label>
			<div class="layui-input-block">
				<textarea placeholder="请输入商品详情" class="layui-textarea details" id="details"
					name="details" ></textarea>
			</div>
		</div>
		<!-- <div class="layui-form-item layui-row layui-col-xs12 layui-upload" style="    display: flex;">
			<div class="layui-input-block" style="margin-left: 50px;">
		  <button type="button" class="layui-btn" id="test1">上传图片</button>
		  </div>
		  <div class="layui-upload-list"  style=" padding-left: 20px;">
		    <img class="layui-upload-img" id="demo1" style="width: 100px; height: 100px;">
		    <p id="demoText"></p>
		  </div>
		</div>  -->
		<input type="hidden" name="imgUrl" class="imgUrl">  
	<div class="layui-form-item layui-row layui-col-xs12">
		<div class="layui-input-block">
			<button class="layui-btn layui-btn" lay-submit="" lay-filter="addProduct">立即添加</button>
		</div>
	</div>
</form>
<script type="text/javascript" src="${request.contextPath}/static/js/modules/business/productAdd.js"></script>
</body>
</html>